if __name__ == '__main__':
       a=input("输入数：")
       str=list(a)

       if len(str)==1:
           print("0")
       elif  len(str)>1 :
           str.pop(0)
           b=str.count('0')
           if str[0]=='0'and b!=0:
               print("0")
           else:
               b=''
               for c in str:
                   b=b+c
               print(b)